package pri.damai.xiaowu.seckilling.server.api.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pri.damai.xiaowu.common.core.vo.ResultVO;
import pri.damai.xiaowu.common.log.anno.XiaoWuLog;
import pri.damai.xiaowu.seckilling.common.dto.SeckillingDTO;
import pri.damai.xiaowu.seckilling.server.service.SeckillingService;

import javax.annotation.Resource;

/**
 *
 *
 * @description
 * @author YangXinFu
 * @date 15:53 2022/7/14
 **/
@XiaoWuLog
@RestController
@RequestMapping
public class SeckilingController {

    @Resource
    SeckillingService seckillingService;

    @PostMapping("/seckiling1")
    public ResultVO seckiling(@RequestBody SeckillingDTO seckillingDTO) {
        seckillingService.seckilling1(seckillingDTO);
        return ResultVO.success();
    }

}
